package com.mc.moring.base;

import android.provider.Settings;

import com.mc.moring.BafBase.MyApplication;
import com.mc.moring.core.CoreConfig;
import com.mc.moring.util.SPUtils;
import com.tencent.mmkv.MMKV;


public class BaseApplication extends MyApplication {
    public static BaseApplication baseApplication;
    public static final int KILLERAPPSTATUS = -1;
    public static final int NORMALSTATUS = 0;
    public static int mAppStatus = KILLERAPPSTATUS;

    @Override
    public void onCreate() {
        super.onCreate();
        baseApplication = this;
        MMKV.initialize(this);
        CoreConfig.INSTANCE.setAppContext(this);
        String android_id = "";
        android_id = Settings.System.getString(getContentResolver(), Settings.Secure.ANDROID_ID);
        SPUtils.INSTANCE.setAndroidId(android_id);

    }
    public static BaseApplication getInstance() {
        return baseApplication;
    }
}
